package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

public class RoomParam {
    /**
     * 房间名称
     */
    private String name;
    /**
     * 所属组织
     */
    private Long orgUnitId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoomParam roomParam = (RoomParam) o;
        return Objects.equals(name,roomParam.name) && Objects.equals(orgUnitId, roomParam.orgUnitId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, orgUnitId);
    }
}
